﻿using Microsoft.EntityFrameworkCore;
using Outpatient.Doman.Hospitalization;
using Outpatient.Doman.Smart;
using Outpatient.Doman.SmartClinic;


namespace Outpatient.Infrastructure
{
    public class EFDbContext : DbContext
    {
        public EFDbContext(DbContextOptions options) : base(options)
        {
        }


        //用户
        public DbSet<User> Users { get; set; }
        //医生信息实体类
        public DbSet<DoctorInfo> DoctorInfo { get; set; }
        //咨询详情实体类
        public DbSet<ConsultationDetail> ConsultationDetail { get; set; }
        //咨询分类实体类
        public DbSet<ConsultationCategory> ConsultationCategory { get; set; }
        //健康咨询/资讯实体类
        public DbSet<Consultation> Consultation { get; set; }
        //科室类型
        public DbSet<DepartmentInfo> DepartmentInfos { get; set; }
        //价目项实体类
        public DbSet<PriceItem> PriceItem { get; set; }
        //优惠活动实体类
        public DbSet<Discount> Discount { get; set; }
        //医院信息实体类
        public DbSet<Hospital> Hospital { get; set; }
        //就医指南实体类
        public DbSet<Guide> Guide { get; set; }
        //用户收藏实体类
        public DbSet<UserCollection> UserCollection { get; set; }
        //号类实体类
        public DbSet<Number_category> Number_Categories { get; set; }
        //病人挂号实体类
        public DbSet<Patient_registration> Patient_Registrations { get; set; }

        //医疗卡办理实体类
        public DbSet<MedicalCardRegistration> MedicalCardRegistrations { get; set; }
        //民族实体类
        public DbSet<Ethnic_group> Ethnic_Groups { get; set; }
        //文化（教育程度）实体类
        public DbSet<Culture> Cultures { get; set; }
        //职业实体类
        public DbSet<Occupation> Occupations { get; set; }

        //当前病人消费明细实体类
        public DbSet<Consumption_details> Consumption_Details { get; set; }

        //门诊结账实体类
        public DbSet<Checkout> Checkouts { get; set; }

        //病房表
        public DbSet<Room> Rooms { get; set; }
        //病房类型表
        public DbSet<RoomType> RoomTypes { get; set; }

        //病床号表
        public DbSet<HospitalBed> HospitalBeds { get; set; }
        //患者住院登记表
        public DbSet<PatientAdmission> PatientAdmissions { get; set; }
        //费用表
        public DbSet<Fee> Fees { get; set; }

        //药品表
        public DbSet<Medicine> Medicines { get; set; }

    }
}
